# Delete Folder

Deletes a specific folder from a document library by processing rows from an Excel file.

Filename pattern: filename must contain deletefolder (case-insensitive).
Example: 20240115 deletefolder cleanup.xlsx

# Columns

Name Required Description
Url Conditional Server-relative URL of the document library. Required when MatterCode is not provided.
MatterCode Conditional Matter code used to resolve the document library from the matter list. Required when Url is not provided.
ClientCode No Client code used together with MatterCode to identify the matter.
Folder Yes Relative path of the folder to delete within the library (e.g. Correspondence\2016). Leading and trailing path separators are trimmed.
Force No Boolean. true removes the folder even if it contains files. Defaults to false.
RecycleBin / Recycle No Boolean. true sends the folder to the recycle bin. false (default) permanently deletes it.

Either Url or MatterCode must be provided. Folder is always required.

# Behavior

When targeting by MatterCode, if the matter has more than one document library, the row fails — use Url directly in that case.

Last Updated: 4/20/2026, 12:54:05 PM